<template>
  <div>
    <h2>Home</h2>



  </div>
</template>
<script setup>

import axios from 'axios';

const request = axios.create({
  // baseURL: 'http://127.0.0.1:3000';
  baseURL: 'http://localhost:8081/api/3000',
});
// http://localhost:8081/api/user
// ① http://localhost:8081=>http://127.0.0.1:3000
// ② http://127.0.0.1:3000/api/user
// ③ http://127.0.0.1:3000/api/user=>http://127.0.0.1:3000/user
request.get('/user').then((res) => {
  console.log(res.data);
}).catch((err) => {
  console.log(err.message);
});

</script>